package com.styles.codingstylemybatisgenerator.controller;

import com.styles.codingstylemybatisgenerator.entity.Account;
import com.styles.codingstylemybatisgenerator.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenjian
 * @Package
 * @Description:
 * @date 2018/12/20 23:06
 */
@RestController
public class IndexController {
    @Autowired
    private AccountService accountServiceImpl;

    @GetMapping(value = "/index")
    public Account index() {
        Account one = accountServiceImpl.findOne(1L);
        return one;
    }
}
